/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2023-11-14 14:05:23
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2023-11-15 10:17:02
 * @FilePath: \ZHGD-Vue2\src\api\xtcsgl\stressRequires.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 查询压力机技术要求列表
export function listStressRequires(query) {
  return request({
    url: '/zhgd/stressRequires/list',
    method: 'get',
    params: query
  })
}

// 查询压力机技术要求详细
export function getStressRequires(id) {
  return request({
    url: '/zhgd/stressRequires/' + id,
    method: 'get'
  })
}

// 新增压力机技术要求
export function addStressRequires(data) {
  return request({
    url: '/zhgd/stressRequires',
    method: 'post',
    data: data
  })
}

// 修改压力机技术要求
export function updateStressRequires(data) {
  return request({
    url: '/zhgd/stressRequires',
    method: 'put',
    data: data
  })
}

// 删除压力机技术要求
export function delStressRequires(id) {
  return request({
    url: '/zhgd/stressRequires/' + id,
    method: 'delete'
  })
}

// 压力机校验
export function verifyEligible(query) {
  return request({
    url: '/zhgd/laboratoryMechanicsYGroup/verifyEligiblesyn',
    method: 'get',
    params: query
  })
}
